﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TekaMUD.Engine.Blocks;
using TekaMUD.Engine.Behaviour;

namespace TekaMUD.Engine.ServerTasks
{
	/// <summary>
	/// Spawns NPC's as needed.
	/// </summary>
	public class SpawnNpcTask : Task
	{
		public SpawnNpcTask() : base("Spawn NPC's") { }

		public override void Execute()
		{
			AbstractSpawnPoint[] points = EntityManager.GetSpawnPoints();

			foreach (AbstractSpawnPoint isp in points)
			{
				isp.Activate();
			}
		}
	}
}